import request from '@/utils/request'

// 列表（分页）
export function pageList(query) {
  return request({
    url: '/system/industry/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 新增
export function add(data) {
  return request({
    url: '/system/industry',
    method: 'post',
    loading: true,
    data: data
  })
}

// 修改
export function edit(data) {
  return request({
    url: '/system/industry',
    method: 'put',
    loading: true,
    data: data
  })
}

// 查询详情
export function getInfo(id) {
  return request({
    url: '/system/industry/' + id,
    method: 'get',
    loading: true
  })
}


// 删除
export function remove(id) {
  return request({
    url: '/system/industry/' + id,
    method: 'delete',
    loading: true
  })
}

// 列表（所有）
export function industryList(query) {
  return request({
    url: '/system/industry/list',
    method: 'get',
    loading: true,
    params: query
  })
}
